import request from '@/util/request'

export function searchByKeyword(query,tab){
    return request({
        url: '/search/searchList',
        method: 'get',
        params:{
            keyword: query.keyword,
            pageNum: query.pageNum,
            pageSize: query.pageSize,
            tab: tab
        }
    })
}
export function searchByTagName(query){
    return request({
        url: '/search/searchByTag',
        method: 'get',
        params:{
            keyword: query.keyword,
            pageNum: query.pageNum,
            pageSize: query.pageSize
        }
    })
}